package org.jeecg.modules.zcgl.vo.statistical;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.common.constant.CommonConstant;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.math.BigDecimal;

/**
 * @author 尹涛 * @version V1.0.0
 * @projectName kangxiang-parent
 * @title MaintenanceStatisticalVo
 * @package org.jeecg.modules.zcgl.vo.statistical
 * @description 维修统计
 * @date 2021/6/17
 */
@Data
public class MaintenanceStatisticalVo {

    @Excel(name = "客户名称", width = 15, dictTable = "zcgl_customer_info", dicText = "CONCAT_WS( ';', `name`, phone )", dicCode = "id")
    @Dict(dictTable = "zcgl_customer_info", dicText = "CONCAT_WS( ' ', `name`, phone )", dicCode = "id")
    @ApiModelProperty(value = "客户名称")
    private String customerId;

    @Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private String phone;

    @Excel(name = "身份证/信用代码", width = 15)
    @ApiModelProperty(value = "身份证/信用代码")
    private String code;

    @Excel(name = "资产信息", width = 15, dictTable = "zcgl_asset_info", dicText = "asset_name", dicCode = "id", pullDown = false)
    @Dict(dictTable = "zcgl_asset_info", dicText = "asset_name", dicCode = "id")
    @ApiModelProperty(value = "资产信息")
    private String assetId;

    @Excel(name = "资产明细", width = 15, dictTable = "zcgl_asset_info_sub", dicText = "room_name", dicCode = "id")
    @Dict(dictTable = "zcgl_asset_info_sub", dicText = "room_name", dicCode = "id")
    @ApiModelProperty(value = "资产明细")
    private String assetSubIds;

    @Excel(name = "产权单位", width = 15)
    @ApiModelProperty(value = "产权单位")
    private String propertyRightUnit;

    @Excel(name = "出租方", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id", dicKey ="parent_id='" + CommonConstant.BASE_DEPART_ID + "'")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @ApiModelProperty(value = "出租方")
    private String rentCompanyId;

    @Excel(name = "管理单位", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id", dicKey ="parent_id='" + CommonConstant.BASE_DEPART_ID + "'")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @ApiModelProperty(value = "管理单位")
    private String companyId;

    @Excel(name = "报修内容", width = 15)
    @ApiModelProperty(value = "报修内容")
    private String repairContent;

    @Excel(name = "维修金额", width = 15)
    @ApiModelProperty(value = "维修金额")
    private BigDecimal money;

    @Excel(name = "承担方", width = 15)
    @ApiModelProperty(value = "承担方")
    private BigDecimal user;

    //查询参数
    private String selections;
}
